{
语法百题 解题报告：
 http://git.oschina.net/et0662/sznoi-grammar/ 
}
var
	a:array[0..10,0..10] of integer;
	i,j,n:integer;
begin
	read(n);
	for i:=1 to n do
	begin
		for j:=1 to i-1 do
		begin
			if j=1 then
			begin
				a[i][1]:=1;
				write('1 ');
			end
			else	
			begin
				a[i][j]:=a[i-1][j-1]+a[i-1][j];
				write(a[i][j],' ');
			end;
		end;
		a[i][i]:=1;
		writeln(1);
	end;
end.
